package com.softwareweb.model;

import java.sql.Date;

public class UserInfo {
	public UserInfo(String name,String pass,
			String email,String city,String occupation,
			Date registerDate,String safeQuestion,String safeAnswer){
		this.name=name;
		this.pass=pass;
		this.email=email;
		this.city=city;
		this.occupation=occupation;
		mobile="";
		QQ="";
		phone="";
		MSN="";
		address="";
		photoURI="";
		introduction="";
		account=0;
		moneyGot=0;
		priority=this.NORMALMEMBER;
		companyType=this.PERSON;
		numFinished=0;
		score=0;
		goldPoint=0;
		this.registerDate=registerDate;
		this.safeQuestion=safeQuestion;
		this.safeAnswer=safeAnswer;
	}
	
	public UserInfo(String name,String pass,String email,String city,
			String mobile,String phone,String QQ,String MSN,String address,
			String photoURI,String occupation,String introduction,int account,
			int moneyGot,int priority,int companyType,int numFinished,int score,
			int goldpoint,Date registerDate,String safeQuestion,String safeAnswer)
	{
		this.name=name;
		this.pass=pass;
		this.email=email;
		this.city=city;
		this.mobile=mobile;
		this.phone=phone;
		this.QQ=QQ;
		this.MSN=MSN;
		this.address=address;
		this.photoURI=photoURI;
		this.occupation=occupation;
		this.introduction=this.introduction;
		this.account=account;
		this.moneyGot=moneyGot;
		this.priority=priority;
		this.companyType=companyType;
		this.numFinished=numFinished;
		this.score=score;
		this.goldPoint=goldPoint;
		this.registerDate=registerDate;
		this.safeQuestion=safeQuestion;
		this.safeAnswer=safeAnswer;
	}
	
	
	private String name;
	private String pass;
	private String email;
	private String mobile;
	private String phone;	
	private String QQ;
	private String MSN;
	private String address;
	private String city;
	private String photoURI;	//头像地址
	private String occupation;	//职业
	private String introduction;//介绍
	private int account;		//账户余额
	private int moneyGot;	//已得收入
	private int priority;	//会员级别
	private int companyType;	//个人、公司类型
	private int numFinished;	//完成交易数目
	private int score;			//积分
	private int goldPoint;		//金点，用于交易，能用充值得到。
	private java.sql.Date registerDate;	//注册日期
	private String safeQuestion; //安全问题
	private String safeAnswer;	//安全回答
	
	public int getGoldPoint() {
		return goldPoint;
	}

	public void setGoldPoint(int goldPoint) {
		this.goldPoint = goldPoint;
	}

	public java.sql.Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(java.sql.Date registerDate) {
		this.registerDate = registerDate;
	}

	public String getSafeQuestion() {
		return safeQuestion;
	}

	public void setSafeQuestion(String safeQuestion) {
		this.safeQuestion = safeQuestion;
	}

	public String getSafeAnswer() {
		return safeAnswer;
	}

	public void setSafeAnswer(String safeAnswer) {
		this.safeAnswer = safeAnswer;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	public String getMSN() {
		return MSN;
	}

	public void setMSN(String mSN) {
		MSN = mSN;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPhotoURI() {
		return photoURI;
	}

	public void setPhotoURI(String photoURI) {
		this.photoURI = photoURI;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public int getAccount() {
		return account;
	}

	public void setAccount(int account) {
		this.account = account;
	}

	public int getMoneyGot() {
		return moneyGot;
	}

	public void setMoneyGot(int moneyGot) {
		this.moneyGot = moneyGot;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getCompanyType() {
		return companyType;
	}

	public void setCompanyType(int companyType) {
		this.companyType = companyType;
	}

	public int getNumFinished() {
		return numFinished;
	}

	public void setNumFinished(int numFinished) {
		this.numFinished = numFinished;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}


	public static final int PERSON=1;
	public static final int COMPANY=2;
	
	public static final int NORMALMEMBER=1;
	public static final int VIPMEMBER=2;
	public static final int GOLDVIPMEMBER=3;
}
